package com.orcs.leefei.utils.kotlin

import android.graphics.drawable.Drawable
import android.support.v4.graphics.drawable.DrawableCompat
import android.widget.ProgressBar

/**
 *
 * Created by FeiLee on 2017/2/2 22:59.
 */
inline fun Drawable.tintColor(color: Int) {
     DrawableCompat.setTint(this, color)
}

inline fun ProgressBar.tintColor(color: Int) {
    DrawableCompat.setTint(indeterminateDrawable, color)
}